<!-- user list -->
<div class="panel-body">
  <button class="btn btn-primary" (click)="openAddDlg()">新增管理员</button>
  <button class="btn btn-primary" id="testBt" (click)="setCheckBox()">test</button>
  <span>当前管理员列表</span>
  <div class="table-responsive">
    <table class="table table-bordered">
      <thead>
        <tr class="tbhead btn-primary">
          <th>Email</th>
          <th>Name</th>
          <th>Role</th>
          <th>状态</th>
          <th>CreatedOn</th>
          <th>ExpiredOn</th>
          <th>Operate</th>
        </tr>
      </thead>
      <tbody>
        <tr *ngFor="let user of users">
          <td class="clkt" title="click to edit." (click)="openEditDlg(user)">{{user.email}}</td>
          <td>{{user.name}}</td>
          <td>{{user.role}}</td>
          <td><input type="checkbox" class="bsscb" name="{{user._id}}" value="{{user.status}}" /></td>
          <td>{{user.createdOn | date:'yMdjm'}}</td>
          <td>{{user.expiredOn | date:'yMdjm'}}</td>
          <td>
            <button class="btn btn-primary" (click)="deleteUser(user._id)">删除</button>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</div>


